package com.alittle.core;

import android.content.Context;
import android.content.Intent;

import com.alittle.module.PanelHostActivity;
import com.alittle.module.login.LoginActivity;

/**
 * Created by wom on 2015/8/18.
 */
public class LittleRouter {

    /**
     * 根据情况不同打开app时跳转至不同的Activity
     * @param context
     */

    public static void routeToLogin(Context context) {

        Intent intent = new Intent(context, LoginActivity.class);
        context.startActivity(intent);
    }

    public static void routeToPanelHost(Context context) {

        Intent intent = new Intent(context, PanelHostActivity.class);
        context.startActivity(intent);
    }
}
